package com.our.sys.project1.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.springside.modules.orm.grid.ViewField;

import com.our.sys.orm.hibernate.AuditableEntity;

/**
 * 生产经营许可证
 * @author acer
 *
 */
@Entity
@Table(name = "B_Produclicenses")
public class Produclicenses extends AuditableEntity implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 7069056366205486716L;

    @ViewField
    private Long supplierId;
    @ViewField(header = "供应商名称", width = 200, align = "left")
    private String supplier;
    @ViewField
    private Long produceId;
    @ViewField(header = "生产厂家名称", width = 200, align = "left")
    private String produce;
    @ViewField(header = "生产（经营）编号", width = 200, align = "left")
    private String produceNo;
    @ViewField(header = "注册地址", width = 200, align = "left")
    private String registerAddress;
    @ViewField(header = "生产（经营）地址", width = 300, align = "left")
    private String produceAddress;
    @ViewField(header = "法人代表", width = 200, align = "left")
    private String person;
    @ViewField(header = "企业负责人", width = 200, align = "left")
    private String companyPerson;
    @ViewField(header = "生产（经营）范围", width = 200, align = "left")
    private String businessRange;
    @ViewField(header = "发证日期", width = 200, align = "left")
    private String licensDate;
    @ViewField(header = "有效期至", width = 200, align = "left")
    private String endDate;
    @ViewField(header = "发证机关", width = 200, align = "left")
    private String licensesOrg;
    @ViewField(header = "拼音助记符", width = 100, align = "left")
    private String py;
    @ViewField(header = "五笔助记符", width = 100, align = "left")
    private String wb;
    @ViewField
    private String imgSrc;

    @Id
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "Id_Generator")
    @TableGenerator(name = "Id_Generator", table = "ID_GENERATOR", pkColumnName = "GEN_NAME", valueColumnName = "GEN_VAL", pkColumnValue = "B_Produclicenses")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public String getSupplier() {
        return supplier;
    }

    public void setSupplier(String supplier) {
        this.supplier = supplier;
    }

    public Long getProduceId() {
        return produceId;
    }

    public void setProduceId(Long produceId) {
        this.produceId = produceId;
    }

    public String getProduce() {
        return produce;
    }

    public void setProduce(String produce) {
        this.produce = produce;
    }

    public String getProduceNo() {
        return produceNo;
    }

    public void setProduceNo(String produceNo) {
        this.produceNo = produceNo;
    }

    public String getRegisterAddress() {
        return registerAddress;
    }

    public void setRegisterAddress(String registerAddress) {
        this.registerAddress = registerAddress;
    }

    public String getProduceAddress() {
        return produceAddress;
    }

    public void setProduceAddress(String produceAddress) {
        this.produceAddress = produceAddress;
    }

    public String getPerson() {
        return person;
    }

    public void setPerson(String person) {
        this.person = person;
    }

    public String getCompanyPerson() {
        return companyPerson;
    }

    public void setCompanyPerson(String companyPerson) {
        this.companyPerson = companyPerson;
    }

    public String getBusinessRange() {
        return businessRange;
    }

    public void setBusinessRange(String businessRange) {
        this.businessRange = businessRange;
    }

    public String getLicensDate() {
        return licensDate;
    }

    public void setLicensDate(String licensDate) {
        this.licensDate = licensDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getLicensesOrg() {
        return licensesOrg;
    }

    public void setLicensesOrg(String licensesOrg) {
        this.licensesOrg = licensesOrg;
    }

    public String getPy() {
        return py;
    }

    public void setPy(String py) {
        this.py = py;
    }

    public String getWb() {
        return wb;
    }

    public void setWb(String wb) {
        this.wb = wb;
    }

    public String getImgSrc() {
        return imgSrc;
    }

    public void setImgSrc(String imgSrc) {
        this.imgSrc = imgSrc;
    }

}
